<?php

namespace App\Providers;

use App\Models\BalanceRecord;
use App\Models\BirthdayPrerogativeGetRecord;
use App\Models\ContinueSigninRecord;
use App\Models\CreditsExchangeRecord;
use App\Models\CreditsRecod;
use App\Models\ShareGiftRecord;
use App\Models\SigninShareRecord;
use App\Obersvers\BalanceRecordObersver;
use App\Obersvers\BirthdayPrerogativeGetRecordObersver;
use App\Obersvers\ContinueSigninRecordObersver;
use App\Obersvers\CreditsExchangeObersver;
use App\Obersvers\CreditsRecordObersver;
use App\Obersvers\ShareGiftRecordObersver;
use App\Obersvers\SigninRecordObersver;
use Illuminate\Support\ServiceProvider;
use Laravel\Horizon\Horizon;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        SigninShareRecord::observe(SigninRecordObersver::class);

        CreditsRecod::observe(CreditsRecordObersver::class);

        CreditsExchangeRecord::observe(CreditsExchangeObersver::class);

        ContinueSigninRecord::observe(ContinueSigninRecordObersver::class);

        BalanceRecord::observe(BalanceRecordObersver::class);

        BirthdayPrerogativeGetRecord::observe(BirthdayPrerogativeGetRecordObersver::class);

        ShareGiftRecord::observe(ShareGiftRecordObersver::class);

        Horizon::auth(function ($request) {
            return true;
        });
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
